<<<<<<< HEAD
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>ws页面</title>
    <meta charset="UTF-8">
	<script src="jquery-3.2.1.js"></script>
</head>
<body>
<input type="text" placeholder="食物号" id="foodId"><input type="text" placeholder="需要个数" id="needCount">
<input type="text" placeholder="桌子id" id="id">
<input type="text" placeholder="桌号" id="seat">
<input type="text" placeholder="商店id" id="storeId">
<input type="text" placeholder="用餐人数" id="peopleNumber">
<input type="button" value="发送" id="btnClick1">

</div>
<div id="resultDiv"></div>
<div><input type="text" id="msg"><input type="button" value="发送" id="btnClick2" disabled="disabled"></div>
<script>
$("#btnClick1").click( function () {
	var foodShelvesVO=function(foodId,needCount){
		this.foodId=foodId;
		this.needCount=needCount;
	}
	var table=function(id,seat,storeId){
		this.id=id;
		this.seat=seat;
		this.storeId=storeId;
	}
	var tables=new table($("#id").val(),$("#seat").val(),$("#storeId").val());
	var foodShelves=new foodShelvesVO($("#foodId").val(),$("#needCount").val());
	var list=[foodShelves];
	var people=$("#peopleNumber").val();
	console.log(list);
	console.log(tables);
	console.log(people);
	$.ajax({
		   type: "POST",
		   url: "/orderList/placeAnOrder",
		   data:"{\"foodShelvesVOList\":\""+list+"\",\"diningTable\":\""+tables+"\",\"peopleNumber\":\""+people+"\" */}", 
		  /*  \"diningTable\":\""+tables+"\",
		   \"peopleNumber\":\""+people+"\" */
		   /* data: {
			    "\foodShelvesVOList\" : "\"+list+"\",
			    "\diningTable\" : "\"+tables+"\",
			    "\peopleNumber\" : "\"+people+"\"
		   }, */
		   headers: {'Content-Type': 'application/json'},
		   success: function(msg){
			   console.log(msg);
		   }
		});
	});

</script>
</body>
=======
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>ws页面</title>
    <meta charset="UTF-8">
	<script src="jquery-3.2.1.js"></script>
</head>
<body>
<input type="text" placeholder="食物号" id="foodId"><input type="text" placeholder="需要个数" id="needCount">
<input type="text" placeholder="桌子id" id="id">
<input type="text" placeholder="桌号" id="seat">
<input type="text" placeholder="商店id" id="storeId">
<input type="text" placeholder="用餐人数" id="peopleNumber">
<input type="button" value="发送" id="btnClick1">

</div>
<div id="resultDiv"></div>
<div><input type="text" id="msg"><input type="button" value="发送" id="btnClick2" disabled="disabled"></div>
<script>
$("#btnClick1").click( function () {
	var foodShelvesVO=function(foodId,needCount){
		this.foodId=foodId;
		this.needCount=needCount;
	}
	var table=function(id,seat,storeId){
		this.id=id;
		this.seat=seat;
		this.storeId=storeId;
	}
	var tables=new table($("#id").val(),$("#seat").val(),$("#storeId").val());
	var foodShelves=new foodShelvesVO($("#foodId").val(),$("#needCount").val());
	var list=[foodShelves];
	var people=$("#peopleNumber").val();
	console.log(list);
	console.log(tables);
	console.log(people);
	$.ajax({
		   type: "POST",
		   url: "/orderList/placeAnOrder",
		   data:"{\"foodShelvesVOList\":\""+list+"\",\"diningTable\":\""+tables+"\",\"peopleNumber\":\""+people+"\" */}", 
		  /*  \"diningTable\":\""+tables+"\",
		   \"peopleNumber\":\""+people+"\" */
		   /* data: {
			    "\foodShelvesVOList\" : "\"+list+"\",
			    "\diningTable\" : "\"+tables+"\",
			    "\peopleNumber\" : "\"+people+"\"
		   }, */
		   headers: {'Content-Type': 'application/json'},
		   success: function(msg){
			   console.log(msg);
		   }
		});
	});

</script>
</body>
>>>>>>> 76b6f31bbcbec31ccfa63ebf7ff5aeaf5445e070
</html>